package edu.sctu.practice.class02.xuqianlan.assign.assign02;

import java.lang.*;
import java.util.Objects;

/**
 * Created by lenovo on 2015/10/29.
 */
public class ComparableCircle extends Cricle implements Comparable {
    public int area = 0;

    public ComparableCircle(int r) {
        super(r);
    }


    @Override
    public int compareTo(Objects o) {
        area=(int) Math.PI*r*r;
        System.out.println("圆面积："+area);
        return area;
    }
}